<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/equipment/equipmentLookUp" onsubmit="return  dialogSearch(this);">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label> <@label key='equipmentCode.C,colon'>设备编号：</@label> </label> <input type="text" name="equipmentCode" value="${condition.equipmentCode!''}" /></li>
                <li><label> <@label key='equipmentText.C,colon'>设备描述：</@label> </label> <input type="text" name="equipmentText" value="${condition.equipmentText!''}" /></li>
            </ul>
            <ul class="searchContent">
                <li><label><@label key='equipmentCategory.C,colon'>设备类别：</@label> </label> <input class="look" id="categoryLookup.categoryCode" name="categoryCode" value="${condition.categoryCode!''}" type="text" postField="categoryCode" suggestFields="categoryCode,categoryText" suggestUrl="${rc.getContextPath()}/manage/emCategory/categoryDropdown" lookupGroup="categoryLookup" /> <a class="btnLook" mask="true" href="${rc.getContextPath()}/manage/emCategory/categoryLookup" lookupPk="categoryLookup" width="700" height="310" rel="categoryLookup_dialog" target="dialog" lookupGroup="categoryLookup"><span><@label key="categorySelect.C">设备类别选择</@label></span></a></li>
                <li><label><@label key='equipmentStatus.C,colon'>设备状态：</@label> </label> <input class="look" id="statusLookup.statusCode" name="statusCode" value="${condition.statusCode!''}" type="text" postField="statusCode" suggestFields="statusCode,statusText" suggestUrl="${rc.getContextPath()}/manage/equipmentStatus/statusDropdown" lookupGroup="statusLookup" /> <a class="btnLook" mask="true" href="${rc.getContextPath()}/manage/equipmentStatus/statusLookup" lookupPk="statusLookup" width="700" height="300" rel="statusLookup_dialog" target="dialog" lookupGroup="statusLookup"><span><@label key="statusSelect.C">设备状态选择</@label></span></a></li>
                <li class="query">
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div></li>

            </ul>
        </div>
        <div class="selectTable">
            <table class="table border"  targetType="dialog" width="100%" layoutH="138">
                <thead>
                    <tr>
                        <th width="100" orderField="equipmentCode"<#if (page.orderField?? && page.orderField == 'equipmentCode')>class="${page.orderDirection!''}"</#if>><@label key="equipmentCode.C">设备编号</@label></th>
                        <th width="100" orderField="equipmentText"<#if (page.orderField?? && page.orderField == 'equipmentText')>class="${page.orderDirection!''}"</#if>><@label key="equipmentText.C">设备名称</@label></th>
                        <th width="100" orderField="categoryCode"<#if (page.orderField?? && page.orderField == 'categoryCode')>class="${page.orderDirection!''}"</#if>><@label key="categoryCode.C">设备类别</@label></th>
                        <th width="100" orderField="statusCode"<#if (page.orderField?? && page.orderField == 'statusCode')>class="${page.orderDirection!''}"</#if>><@label key="equipmentStatus.C">设备状态</@label></th>
                        <th width="80"><@label key="selected_first.C">请选择</@label></th>
                    </tr>
                </thead>
                <tbody>
                    <#if page??><#if (page.data?size>0)> <#list page.data as equipment>
                    <tr target="equipment_code" rel="${equipment.equipmentCode!''}">
                        <td>${equipment.equipmentCode!''}</td>
                        <td>${equipment.equipmentText!''}</td>
                        <td>${equipment.categoryCode!''}</td>
                        <td>${equipment.statusCode!''}</td>
                        <td><a class="btnSelect bringBack" value="equipmentCode:'${equipment.equipmentCode!''}', equipmentText:'<@json_escape>${equipment.equipmentText!''}</@json_escape>',useDepartment:'<@json_escape>${equipment.useDepartment!''}</@json_escape>'"><@label key="select.B">选择</@label></a>
                        </td>
                    </tr>
                    </#list> <#else>
                    <tr>
                        <td class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font></td>
                    </tr>
                    </#if> <#else>
                    <tr>
                        <td class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font></td>
                    </tr>
                    </#if>
                </tbody>
            </table>
            <#include "/common/dialogPanelBar.html">
        </div>
    </div>
</form>